package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 权限类
 * </p>
 *
 * @author cy
 * @since 2020-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Operation extends Model<Operation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "operation_id", type = IdType.AUTO)
    private Integer operationId;

    /**
     * 权限
     */
    private String operation;


    @Override
    protected Serializable pkVal() {
        return this.operationId;
    }

}
